{template 'header-company'}
<!--当前位置-->
<div class="location layout960">
	当前位置: <a href="{SITE_URL}">首页</a>&nbsp;»&nbsp; <a href="{url('job/index')}">企业招聘</a>
</div>
<!--当前位置 end-->
<!--主体部分-->
<div class="main layout960">
<!--推荐属性-->
<div class="main-head-blue">
	<h2>企业招聘</h2>
	<a href="{url('member/my')}?mid={$moduleid}&action=add">发布招聘信息</a>
</div>
<!--main-body-border start-->
<div class="main-body border">
<h4>所有类目</h4>
<!--cat-property start-->
<div class="cat-property">
	<div class="cat-section fn-clear">
		<div class="cat-hd fn-left">职业类别：</div>
		{loop $maincat $k1 $mainL}
		<ul class="fn-right">
			{loop $mainL $k2 $v}
			<li><a {if $v[catid]==$catid||in_array($v[catid],explode(',', $CAT['arrparentid']))} class='current'{/if} href="?action={$action}&catid={$v[catid]}&areaid={$areaid}&order={$order}&date={$date}&exp={$exp}&education={$education}&kw={$kw}" title="{set_style($v[catname],$v[style])}">{$v[catname]}</a></li>
			{/loop}
		</ul>
		{/loop}
	</div>
	<div class="cat-section fn-clear">
		<div class="cat-hd fn-left">发布日期：</div>
		<ul class="fn-left">
			<li>
				<a {if $date==1} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date=1&exp={$exp}&education={$education}&kw={$kw}" title="">今天</a>
			</li>
			<li>
				<a {if $date==2} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date=2&exp={$exp}&education={$education}&kw={$kw}" title="">最近三天</a>
			</li>
			<li>
				<a {if $date==3} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date=3&exp={$exp}&education={$education}&kw={$kw}" title="">最近一周</a>
			</li>
			<li>
				<a {if $date==4} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date=4&exp={$exp}&education={$education}&kw={$kw}" title="">最近一个月</a>
			</li>
		</ul>
	</div>
	<div class="cat-section fn-clear">
		<div class="cat-hd fn-left">工作经验：</div>
		<ul class="fn-left">
			<li>
				<a {if $exp==0} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date={$date}&exp=&education={$education}&kw={$kw}" title="">不限</a>
			</li>
			<li>
				<a {if $exp==1} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date={$date}&exp=1&education={$education}&kw={$kw}" title="">1-3年</a>
			</li>
			<li>
				<a {if $exp==2} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date={$date}&exp=2&education={$education}&kw={$kw}" title="">3-5年</a>
			</li>
			<li>
				<a {if $exp==3} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date={$date}&exp=3&education={$education}&kw={$kw}" title="">5年以上</a>
			</li>

		</ul>
	</div>
	<div class="cat-section fn-clear">
		<div class="cat-hd fn-left">学历要求：</div>
		<ul class="fn-left">
			{loop $EDUCATION $i $t}
			<li>
				<a {if $education==$i} class='current'{/if} href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date={$date}&exp={$exp}&education={$i}&kw={$kw}" title="">{$t}</a>
			</li>
			{/loop}
		</ul>
	</div>
	{template 'cat_area', 'filter'}
</div>
<!--cat-property end-->
{if $catid||$date||$exp||$education}
<div class="cat-selected fn-clear">
	<h5 class="fn-left">您已选择：</h5>
	<ul class="fn-left">
		{if $catid&&$catid!=null}<li><a href="?action={$action}&areaid={$areaid}&order={$order}&date={$date}&exp={$exp}&education={$education}&kw={$kw}"><h5>类型:</h5>{$CAT['catname']}<i class="icon-close"></i></a></li>{/if}
		{if $date&&$date!=null}<li><a href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&exp={$exp}&education={$education}&kw={$kw}"><h5>日期:</h5>{$vdate[$date]}<i class="icon-close"></i></a></li>{/if}
		{if $exp&&$exp!=null}<li><a href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date={$date}&education={$education}&kw={$kw}"><h5>经验:</h5>{$vexp[$exp]}<i class="icon-close"></i></a></li>{/if}
		{if $education&&$education!=null}<li><a href="?action={$action}&catid={$catid}&areaid={$areaid}&order={$order}&date={$date}&exp={$exp}&kw={$kw}"><h5>学历:</h5>{$EDUCATION[$education]}<i class="icon-close"></i></a></li>{/if}
	</ul>
</div>
{/if}
{if $areaid}
{template 'sel_area', 'filter'}
{/if}
<!--过滤-->
<div class="filter fn-clear">
	<div class="filter-hd fn-clear">
		<h3 class="fn-left">所有职位</h3>
        <div class="page-top fn-right fn-clear">
            <div class="fn-left">当前共有<span>{if $items}{$items}{else}0{/if}</span>信息</div>
            {if $items}
            <span>{php echo $do->getPn()->getPage()}/{php echo $do->getPn()->getPages()}</span>
            {php echo $do->getPn()->getPrev()}
            {php echo $do->getPn()->getNext()}
            {/if}
        </div>
		<form class="fn-right" id="filter-search" action="?">
			<label for="keyword">关键字：</label>
			<input type="hidden"  name="action" value="{$action}"  class="serch-text">
			<input type="hidden"  name="catid" value="{$catid}"  class="serch-text">
			<input type="hidden"  name="areaid" value="{$areaid}" class="serch-text">
			<input type="hidden"  name="order" value="{$order}" class="serch-text">
			<input type="hidden"  name="date" value="{$date}"  class="serch-text">
			<input type="hidden"  name="exp" value="{$exp}"  class="serch-text">
			<input type="hidden"  name="education" value="{$education}"  class="serch-text">
			<input id="keyword" class="search-input" type="text" name="kw" value="{$kw}" />
			<button type="submit">确定</button>
		</form>
	</div>
</div>
<!--过滤 end-->
<!--搜索结果-->
<div class="layout-inner fn-clear">
<div class="layout-inner-1of2 fn-left">
<table class="job-heading">
	<thead>
	<tr>
		<th width="200px"><span>职位名称</span></th>
		<th width="200px"><span>公司名称</span></th>
		<th width="100px"><span>工作地点</span></th>
		<th width="100px"><span>发布日期</span></th>
		<th width="20px">&nbsp;</th>
	</tr>
	</thead>
</table>
	{if $tags}
	{loop $tags $i $t}
	{php $useinfo=userinfo($t[username]);}
<table class="job-content">
	<tbody>
	<tr>
		<td width="200px" class="company-job"><a href="{url(MODULE_NAME.'/show', 'itemid='.$t['itemid'])}" target="_blank">{$t['title']}</a></td>
		<td width="200px">{$t['company']}</td>
		<td width="100px">{$AREA[$t['areaid']]['areaname']}</td>
		<td width="100px">{$t['editdate']}</td>
		<td width="20px"><a class="icon-dropdown job-show-btn" href="javascript:void(0)"></a></td>
	</tr>
	<tr class="job-detail fn-hide">
		<td colspan="5">
			<div class="hire-job-detail fn-clear">
				<div class="left fn-left">
					<p class="job-willing">地点：{$AREA[$useinfo['areaid']]['areaname']} 工作性质：{$TYPE[$t['type']]} 公司规模：{if $useinfo['size']}{$useinfo['size']}{else}未知{/if}  经验：{if $t['experience']==0}无需求{else}{$t['experience']}年以上{/if}  学历：{if
						$t['education']}{$EDUCATION[$t['education']]}以上{else}不限{/if}</p>
					<p class="job-duty">{$t['introduce']}</p>
				</div>
				<div class="right fn-right">
					<a class="apply" href="{url('job/apply','itemid='.$t[itemid])}" target="_blank">立即申请</a>
					<a class="collect" href="{$MODULE[2][linkurl]}favorite.php?action=add&title={$t['company']}&url={$MOD[linkurl]}show.php?itemid={$t['itemid']}" target="_blank">收藏职位</a>
				</div>
			</div>
		</td>
	</tr>
	</tbody>
</table>
	{/loop}
	{php $total = $items}
	{php $pn = $do->getPn()}
	{template 'pager', 'inc'}
	{else}
	<table class="job-content">
		{template 'noresult', 'message'}
	</table>
	{/if}
</div>
	<div class="fn-right">
		<iframe src="{SITE_URL}extend/fragment.php?modules=com&psize=10"  scrolling="no" frameborder="0" height='303'></iframe>
	</div>
<!--2of2 end-->
</div>
<!--搜索结果 end-->
</div>
    <script type="text/javascript">
        seajs.use(['$'],function($){
            $(".job-show-btn").each(function(){
                var _show = 0;
                var $detail = $(this).parent().parent().siblings();
                $(this).click(function(){
                    if(_show){
                        $(this).removeClass("icon-dropup").addClass("icon-dropdown");
                        $detail.addClass("fn-hide")
                        _show=0;
                    }else{
                        $(this).removeClass("icon-dropdown").addClass("icon-dropup");
                        $detail.removeClass("fn-hide")
                        _show=1;
                    }
                });
            });
        });
    </script>
<!--main-body-border end-->
</div>
<!--主体部分 end-->
{template 'footer'}